public class Mpoint {
    int x =0;//横坐标
    int y =0;//纵坐标

    public Mpoint(){

    }

    public Mpoint(int x,int y){
        this.x=x;
        this.y=y;
    }


    public void disply(){

        System.out.print("The abscissa is:"+x+"The ordinate is:"+y);
    }

    public void move(int Transverse,int Longitudinal){
        x +=Transverse;
        y+=Longitudinal;
    }

    public int getX() {

        return x;
    }

    public void setX(int x1) {

        x = x1;
    }

    public int getY() {
        return y;
    }

    public void setY(int y1) {
       y = y1;
    }
}
